package com.leyou.mapper;

import com.leyou.item.entity.Category;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author xiuer
 * @date 2019/6/23 19:02
 * @description 商品分类数据持久层
 */
public interface ICategoryMapper {


    List<Category> queryCategoryByPid(Long pid);

    List<Category> queryCategoryByBid(@Param("bid") Long bid);
        /*根据分类id集合 查询所有分类*/
    List<Category> queryCategoryByCids(@Param("cids")List<Long> cids);

}
